﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Barbar.Colonization.Model.Script.GameCommands {
  public class SetRuleSet : GameCommand {
    private IRuleSet m_RuleSet;

    public SetRuleSet(Game game, IRuleSet ruleSet)
      : base(game) {
      if (ruleSet == null)
        throw new ArgumentNullException("ruleSet");
      m_RuleSet = ruleSet;
    }

    public override void Execute() {
      InternalGame.RuleSet = m_RuleSet;
    }
  }
}
